﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Create.ascx.vb" Inherits="Control_KhachSan_Create" %>
<script type="text/javascript">
    function ajaxJquery() {
        $(function () {
            // register thickbox after postback
            var isAsyncPostback = Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack();
            if (isAsyncPostback) {
                tb_init('a.thickbox, area.thickbox, input.thickbox');
            }
        });
    }

    function  setUsersValue(UserId, UserName, FullName) {
        $("#<%=txtUserName.ClientID %>").val(UserName + " - " + FullName);
        $("#<%=hidUserId.ClientID %>").val(UserId);
    }

    $(".BoxField input, .BoxField select").keypress(function (e) {
        if (e.keyCode == 13) {
            $("#<%= btnSave.ClientID %>").click();
            return false;
        }
    });


</script>

<asp:UpdatePanel ID="uplHotel" runat="server">
<ContentTemplate>
<div  class="BoxField">


<div  class="Header"><h3>
	TẠO CƠ SỞ LƯU TRÚ</h3>
</div>
<div class="Required">
          <span class="fieldRequired">&nbsp;</span>Trường yêu cầu nhập dữ liệu
      </div>
    <div class="Error">
       <asp:ValidationSummary ID="ValidationSummary2" runat="server" ForeColor="#FF3300" />
 </div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="Label3" CssClass="TextLabel" runat="server" Text="Mã CSLT:" /><span class="fieldRequired">&nbsp;</span>
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtHotelCode" CssClass="TextBox" runat="server" Text="" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtHotelCode"
                Display="None" ErrorMessage="Vui lòng nhập mã CSLT" SetFocusOnError="True"> </asp:RequiredFieldValidator>
		</div>
		</div>


		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblHotelname" CssClass="TextLabel" runat="server" Text="Tên CSLT:" /><span class="fieldRequired">&nbsp;</span>
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtHotelname" CssClass="TextBox" runat="server" Text="" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtHotelname"
                Display="None" ErrorMessage="Vui lòng nhập tên CSLT" SetFocusOnError="True"> </asp:RequiredFieldValidator>
		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblHoteltypeid" CssClass="TextLabel" runat="server" Text="Loại CSLT:" /><span class="fieldRequired">&nbsp;</span>
		</div>
		<div  class="DivTextBox" >
			<asp:DropDownList ID="ddlHoteltypeid" runat="server" ></asp:DropDownList>
             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlHoteltypeid"
                Display="None" ErrorMessage="Vui lòng chọn loại khách sạn" SetFocusOnError="True"> </asp:RequiredFieldValidator>
		</div>
		</div>

		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblAddress" CssClass="TextLabel" runat="server" Text="Địa chỉ:" /><span class="fieldRequired">&nbsp;</span>
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtAddress" CssClass="TextBox" runat="server" Text="" MaxLength="500" />
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtAddress"
                Display="None" ErrorMessage="Vui lòng nhập địa chỉ" SetFocusOnError="True"> </asp:RequiredFieldValidator>
		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="Label2" CssClass="TextLabel" runat="server" Text="Quận/Huyện:" /><span class="fieldRequired">&nbsp;</span>

		</div>
		<div  class="DivTextBox" >
			
            <asp:DropDownList ID="ddlDistrict" runat ="server" CssClass="DropDownList" AutoPostBack="true"></asp:DropDownList>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ddlDistrict"
                Display="None" ErrorMessage="Vui lòng chọn Quận/Huyện" SetFocusOnError="True"> </asp:RequiredFieldValidator>
		</div>

		</div>

		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="Label1" CssClass="TextLabel" runat="server" Text="Phường/Xã:" /><span class="fieldRequired">&nbsp;</span>

		</div>
		<div  class="DivTextBox" >
			
             <asp:DropDownList ID="ddlWard" runat ="server" CssClass="DropDownList"></asp:DropDownList>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="ddlWard"
                Display="None" ErrorMessage="Vui lòng chọn Phường/Xã" SetFocusOnError="True"> </asp:RequiredFieldValidator>
		</div>
		</div>



		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblBusinesslicence" CssClass="TextLabel" runat="server" Text="Số đăng ký Kinh doanh:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtBusinesslicence" CssClass="TextBox" runat="server" Text="" />
		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblNumberofroom" CssClass="TextLabel" runat="server" Text="Số phòng:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtNumberofroom" CssClass="TextBox" runat="server" Text="" />
		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblNumberofstaff" CssClass="TextLabel" runat="server" Text="Số nhân viên:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtNumberofstaff" CssClass="TextBox" runat="server" Text="" />
		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblDirector" CssClass="TextLabel" runat="server" Text="Người quản lý:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtDirector" CssClass="TextBox" runat="server" Text="" />
		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblPhone" CssClass="TextLabel" runat="server" Text="Điện thoại:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtPhone" CssClass="TextBox" runat="server" Text="" />
		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblFax" CssClass="TextLabel" runat="server" Text="Fax:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtFax" CssClass="TextBox" runat="server" Text="" />
		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblEmail" CssClass="TextLabel" runat="server" Text="Email:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtEmail" CssClass="TextBox" runat="server" Text="" />
		    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                Display="None" ErrorMessage="Vui lòng nhập đúng định dạng email" 
                SetFocusOnError="True" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblWebsite" CssClass="TextLabel" runat="server" Text="Website:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtWebsite" CssClass="TextBox" runat="server" Text="" />
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtWebsite"
                Display="None" ErrorMessage="Vui lòng nhập đúng định dạng website" 
                SetFocusOnError="True" 
                ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator>
		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblUserid" CssClass="TextLabel" runat="server" Text="Người dùng:" /><span class="fieldRequired">&nbsp;</span>
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtUserName" CssClass="TextBox" runat="server" Text="" ReadOnly="True" /><asp:HyperLink id="hplUser" runat="server" CssClass="thickbox">Chọn</asp:HyperLink>
             <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtUserName"
                Display="None" ErrorMessage="Vui lòng chọn người dùng" SetFocusOnError="True"> </asp:RequiredFieldValidator>

		</div>
		</div>
		<div class="DivRow">
		<div class="DivLabel" >&nbsp;&nbsp;&nbsp;</div>
		<div class="DivTextBox" >
			<asp:Button ID="btnSave" runat="server" Text=" Lưu " CssClass="btn" />
			<asp:Button ID="btnHuy" CausesValidation="false" runat="server" Text="Thoát" 
                CssClass="btn" />&nbsp;
		</div>
		</div>

</div>
<div style="display: none">
<asp:HiddenField ID="hidID" Value="0" runat="server" />
<asp:HiddenField ID="hidUserId" Value="0" runat="server" />
<asp:TextBox ID="hidCodeHotel" runat ="server"></asp:TextBox>

</div>

</ContentTemplate>
</asp:UpdatePanel>
